package com.aaa.sso.feign;

import com.aaa.entity.Permission;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


@FeignClient(value = "cai-system")
public interface PermissionFeign {

    @GetMapping("/system/permission/getPermissionByEmpId/{id}")
    public List<Permission> getPermissionByUserid(@PathVariable Integer id);
}
